//
// Created by zhp on 2025/7/17.
//

#ifndef DEMOSYNTAXC_CAT_H
#define DEMOSYNTAXC_CAT_H

#include "Animal.h"

class Cat : public Animal {
public:
    void sound() const override {
        std::cout << "miaomiaomiao!";
    }

    void eat() const {
        std::cout << "cat eat" << std::endl;
    }

    ~Cat() override{
        std::cout << "cat destroy" << std::endl;
    }

};


#endif //DEMOSYNTAXC_CAT_H
